import subprocess

# 设置打包参数
nuitka_command = [
    "python",
    "-m",
    "nuitka",
    "--standalone",
    "--enable-plugin=tk-inter",
    "main.py"
]

def build():
    try:
        subprocess.run(nuitka_command, check=True)
        print("打包成功！")
    except subprocess.CalledProcessError as e:
        print(f"打包失败: {e}")

if __name__ == "__main__":
    build()
